<?php

// Link bar at the top of the page

// Display links
$dlinks = array(
    "index.php?q=s"	=> "Submission Counts",
    "index.php?q=r"	=> "Reviewer Counts",
    "index.php?q=a"	=> "Assignments",
    "index.php?q=t"	=> "Topics",
);

// Edit links
$elinks = array(
    "index.php?q=setcaps"	=> "Edit Caps",
    "index.php?q=setrtop"	=> "Edit Reviewer Topics",
    "index.php?q=setstop"	=> "Edit Submission Topics",
    "index.php?q=con"   	=> "Edit Conflicts",
    "index.php?q=req"   	=> "Edit Requests",
);

printf('<table align="center" width="80%%" border="1"><tr>');
foreach ($dlinks as $url => $label)
    printf('<td align="center"><a href="%s">%s</a></td>', $url, $label);

printf('<td></td>');
printf('<td align="center"><input type="button" value="Run Sort" onclick="location=\'index.php?q=run\'"/></td>');


printf('</tr><tr>');
foreach ($elinks as $url => $label)
    printf('<td align="center"><a href="%s">%s</a></td>', $url, $label);

printf('<td align="center"><input type="button" value="Get SIS Data" onclick="location=\'index.php?q=upload\'"/></td>');

printf('</tr></table>');
printf("\n");
?>
